package com.asiainfo.api.demo.service;

import com.asiainfo.api.demo.domain.model.DemoModel;
import com.asiainfo.framework.dao.Dao;
import com.asiainfo.framework.web.page.PageResult;
import com.asiainfo.framework.web.page.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoService extends AppService {

    @Autowired
    Dao dao;

    public PageResult<?> list(DemoModel model, Pagination page) {
        return dao.selectList("", model, page);
    }
}
